import { makeAutoObservable } from 'mobx'
import { http } from '@/utils'
class ChannelStore {
  Channel = []
  constructor() {
    makeAutoObservable(this)
  }
  // 发起获取频道数据请求
  getChannel = async () => {
    const { data: res } = await http.get(`/channels`)
    this.Channel = res.channels
  }
}
export default ChannelStore